/**
 * @author zhangshuai
 * @version V1.0
 * @Project Java2_26
 * @Package PACKAGE_NAME
 * @Description:
 * @Date 2025/5/12 10:57
 */
//深蓝色有特殊意义的单词   关键字
public class StudentAndTeacher {
    //成员变量 变量声明
    String name;
    int age;
    int score;
    float height;
    String gender;

    //成员方法
    //学习
    public void study(){
        int i = 10;
        System.out.println(name + "已经学习了" + i + "小时");
    }

    public void eatEggsAndRise(){
        System.out.println(name + "已经吃了" + age + "小时");
    }
}